package org.ligson.hbase127;

import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.apache.hadoop.hbase.client.Connection;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

@ConfigurationProperties(prefix = "ligson.data.hbase")
public class HBaseProperties {
    private Map<String, String> properties = new HashMap<>();
    private GenericObjectPoolConfig<Connection> poolConfig = new GenericObjectPoolConfig<>();

    public Map<String, String> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }

    public GenericObjectPoolConfig<Connection> getPoolConfig() {
        return poolConfig;
    }

    public void setPoolConfig(GenericObjectPoolConfig<Connection> poolConfig) {
        this.poolConfig = poolConfig;
    }
}
